//
//  Utils.h
//  TimeBoat
//
//  Created by yang on 2020/3/5.
//  Copyright © 2020 yang. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef NS_ENUM(NSInteger, BlueTeethBloodSugarStatus) {
    BloodSugarNormal = 0,///正常
    BloodSugarOneLow,///低风险低血压
    BloodSugarTwoLow,///中风险低血压
    BloodSugarThreeLow,///高风险低血压
    BloodSugarOneHigh,///低风险高血压
    BloodSugarTwoHigh,///中风险高血压
    BloodSugarThreeHigh,///高风险高血压
};

NS_ASSUME_NONNULL_BEGIN

@interface Utils : NSObject

#pragma mark 字符串
///判断字符串是否为空
+(BOOL)isEmpty:(NSString*)str;

#pragma mark 时间

///获取近num天的日期和星期(输出数组为MM月dd日 E)
+(NSMutableArray *)latelyTimeArrWithNum:(NSInteger)num;

#pragma mark Frame
///使用下面方法获取该视图相对屏幕的位置
+ (CGRect)getRelativeSuperViewCGrectView:(UIView *)view;

#pragma mark image圆角
///Graphics绘制圆角
+ (UIImage *)clipImage:(UIImage *)image;

///贝塞尔曲线绘制图片
+ (UIImage *)clipImageBezierPath:(UIImage *)image;

///drType v血糖值（算法处理后的值）判断血糖风险
+(BlueTeethBloodSugarStatus)judgeBloodSugarStatusWithDrType:(int)drType v:(NSString *)v;

///获取当前VC
+(UIViewController *)getCurrentVC;

///血糖值换算
+(NSString*)dealWithmmolAndMgUnit:(NSString*)glucoseValue;

///iOS获取手机型号
+ (NSString *)getCurrentDeviceModel;
///cpu架构
+ (NSString *)getCPUType;
///系统语言
+(NSString *)getCurrentLanguage;

///根据本地病人类型算法需要的糖尿病类型
+ (int)getAlgorithmPatientType;


@end

NS_ASSUME_NONNULL_END
